package com.atguigu.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/*1.配置
配置数据源
2.配置mybatis-plus
   使用mapperscan
   告诉映射文件在哪里

  2.逻辑删除
   配置全局的逻辑删除规则
    给bean加上逻辑删除注解
*/

/*
* 3.JSR303
*    1)给bean加上校验注解
* */
@EnableDiscoveryClient
@MapperScan("com.atguigu.gulimall.product.dao")//扫描mapper接口
@SpringBootApplication
public class GulimaillProductApplication {
    public static void main(String[] args) {
        SpringApplication.run(GulimaillProductApplication.class, args);
    }
}
